<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>首页</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>

<!--导航栏-->
<div th:replace="~{commons/commons::navbar}"></div>

<!--侧边栏-->
<div class="container-fluid">
    <div class="row">

        <div th:replace="~{commons/commons::sidebar(active='main.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
                <h1 class="h2">欢迎来到邹博客后台管理</h1>
            </div>
            <div class="row border-bottom white-bg dashboard-header">
                <div class="col-sm-5">
                    <h2>博客后台管理</h2>
                    <p>
                        这是邹博客的后台管理系统，可以对邹博客的用户，文章，评论和回复进行管理，修改或删除违规的东西。
                    </p>
                    <br>
                    <p>
                        <a class="btn btn-success btn-outline" href="https://gitee.com/zouhuaqiao/zhq-blog-admin-java" target="_blank">
                            <i class="fa fa-cloud"> </i> 访问码云
                        </a>
                    </p>
                </div>
                <div class="col-sm-4">
                    <h4>技术选型：</h4>
                    <ol>
                        <li>核心框架：Spring Boot。</li>
                        <li>模板引擎：Thymeleaf。</li>
                        <li>持久层框架：MyBatis。</li>
                        <li>数据库连接池：Druid。</li>
                        <li>更多……</li>
                    </ol>
                </div>
                <div class="col-sm-3">
                    <div class="ibox-title">
                        <h5>联系信息</h5>
                    </div>
                    <div class="ibox-content">
                        <p id="pay-qrcode">
                            <a href="javascript:;">
                                <img th:src="@{/img/add_qq.jpg}" width="100%" alt="请使用手机扫码添加我的QQ">
                            </a>
                        </p>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{/js/jquery-3.2.1.slim.min.js}"></script>
<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>

<!-- Icons -->
<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" th:src="@{/js/Chart.min.js}"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>

</body>

</html>